#!/usr/bin/env bash
set -e
cd $HOME
if [[ -e $1 ]]; then
	xdg-open $1 2>/dev/null
else
  xdg-open $(fz $1) >/dev/null 2>&1
fi
exit

